import Vue from 'vue'
import VueRouter from 'vue-router'
// ---------------------------------- 删除导入Home组件这行

Vue.use(VueRouter)

const routes = [
  { path: '/login', component: () => import('@/views/Login.vue') },
  { path: '/reg', component: () => import('@/views/Reg.vue') }
] // ---------------- 清空这个数组

const router = new VueRouter({
  routes
})

export default router
